import cv2
import numpy as np
img = cv2.imread('./picture/flower.png', 1)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
dat = cv2.equalizeHist(gray)
cv2.imshow('gray', gray)
cv2.imshow('dat', dat)
cv2.waitKey(0)
